/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author LYS
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PlmPrjInfo extends BasicModel<PlmPrjInfo> {
  projectid?: string; // 项目ID
  projectname?: string; // 项目名称
  projectcode?: string; // 项目编码
  begintime?: string; // 开始时间
  endtime?: string; // 结束时间
  cstate?: string; // 状态
  crealbegintime?: string; // 实际开始时间
  crealendtime?: string; // 实际结束时间
  cmkindid?: number; // 分类ID
  modifytime?: string; // 修改时间
}

export const plmPrjInfoListData = (params?: PlmPrjInfo | any) =>
  defHttp.post<Page<PlmPrjInfo>>({ url: adminPath + '/queslib/prj/plmPrjInfo/listData', params });

export const plmPrjKindInfoListData = (params?: PlmPrjInfo | any) =>
  defHttp.post<Page<PlmPrjInfo>>({
    url: adminPath + '/queslib/prj/plmPrjInfo/kindTreeData',
    params,
  });
